package be.idamf.mx.rpc
{
	import mx.rpc.AbstractOperation;
	import mx.rpc.AbstractService;
	import mx.rpc.AsyncToken;

	public class MockOperation extends AbstractOperation
	{
		public function MockOperation(service:AbstractService = null, name:String = null)
		{
			super(service, name);
		}
		
		override public function send(...parameters):AsyncToken
		{
			return (service[name] as Function).apply(this, parameters);
		}
	}
}